// CTgaLoader.h -- class for loading a .tga image
// *** Code "Borrowed" from UltimateGameProgramming.com
#ifndef CTGALOADER_H_
#define CTGALOADER_H_

#include <cstdio>
using namespace std;

class CTGALoader
{
private:
	int imageLength;

public:
	CTGALoader();
	CTGALoader(const CTGALoader & img);
	~CTGALoader();

	bool LoadTGA(char *filename);
	bool WriteTGA(char *file, int width, int height, unsigned char *image);
	void FreeImage();

	// these should be made private;
	unsigned int ID;
	int imageWidth;
	int imageHeight;
	unsigned char *image;
	int type;

	CTGALoader & operator=(const CTGALoader & img);
};

#endif

